﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Model
{
    /// <summary>
    /// 地址
    /// </summary>
    public class Address:TdyxObjects
    {        
        Address fatherAddress;


        /// <summary>
        /// 隶属地址
        /// </summary>    
        [XmlIgnore]
        public Address FatherAddress
        {
            get { return fatherAddress; }
            set { fatherAddress = value; }
        }


        /// <summary>
        /// 构造一个地址
        /// </summary>
        /// <param name="name">地址名称</param>
        /// <param name="fatherAddress">隶属地址</param>
        /// <param name="code">地址代码</param>
        public Address(string name, Address fatherAddress, byte[] code):base(name,code)
        {
            this.fatherAddress = fatherAddress;
        }

        /// <summary>
        /// 构造一个地址
        /// </summary>
        /// <param name="name">地址名称</param>
        /// <param name="code">地址代码</param>
        public Address(string name, byte[] code):base(name,code)
        {

        }

		/// <summary>
        /// 构造一个地址
        /// </summary>
        public Address()
        {

        }
    }
}
